import request from '@/utils/request'
// 获取全部订单
export function getAllOrder(query) {
  return request({
    url: '/allorders',
    method: 'GET',
    params: query
  })
}
// 根据关键字获取订单
export function getOrderByKeyWords(query) {
  return request({
    url: '/orders/keywords',
    method: 'GET',
    params: query
  })
}
// 根据订单id获取订单
export function getOrderById(id) {
  return request({
    url: `order/${id}`,
    method: 'GET'
  })
}
export default {
  getAllOrder,
  getOrderById,
  getOrderByKeyWords
}